﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LogMonitorWeb.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="LogMonitorWeb.Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <asp:Label ID="lblLogName" runat="server" Text="服务器名称："></asp:Label>
    <asp:DropDownList ID="dlLogMachine" runat="server" style="margin-bottom: 0px">
    </asp:DropDownList>
    <br />
    <asp:Label ID="lblLogName0" runat="server" Text="日志名称："></asp:Label>
    <asp:DropDownList ID="dlLogName" runat="server" style="margin-bottom: 0px">
    </asp:DropDownList>
    <br />
    <asp:Label ID="lblLogType" runat="server" Text="日志类别："></asp:Label>
    <asp:DropDownList ID="dlLogType" runat="server">
    </asp:DropDownList>
    <br />
    <asp:Label ID="lblLogType0" runat="server" Text="时间："></asp:Label>
    <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
        BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
        Width="200px">
        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
        <NextPrevStyle VerticalAlign="Bottom" />
        <OtherMonthDayStyle ForeColor="#808080" />
        <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
        <SelectorStyle BackColor="#CCCCCC" />
        <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
        <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
        <WeekendDayStyle BackColor="#FFFFCC" />
    </asp:Calendar>
    <br />
    <br />
    <br />
    <asp:Button ID="btnSearch" runat="server" onclick="Button1_Click" Text="查询" />
    <br />
    <br />
    <br />
    <br />
    <br />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:GridView ID="resultGView" runat="server" EnableModelValidation="True" 
        AutoGenerateColumns="False">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="LogDetailView.aspx?queryID={0}" DataTextField="id" 
                HeaderText="ID" NavigateUrl="~/LogDetailView.aspx" Target="_self" />           
            <asp:BoundField DataField="logname" HeaderText="logname" />
            <asp:BoundField DataField="logtype" HeaderText="logtype" />
            <asp:BoundField DataField="logmachine" HeaderText="logmachine" />
            <asp:BoundField DataField="user" HeaderText="user" />
            <asp:BoundField DataField="logDate" HeaderText="logDate" />
            <asp:BoundField DataField="logTime" HeaderText="logTime" />

        </Columns>
    </asp:GridView>
    <asp:Label ID="lblInfo" runat="server" ForeColor="Red" Text="没有查询到数据。" 
        Visible="False"></asp:Label>
</asp:Content>
